package org.hhchat.others.tercent;

import java.util.Scanner;

/**
 * Created by HMH on 2017/4/3.
 */
public class t04 {
    public static void main(String[] args){
        String s;
        Scanner scanner = new Scanner(System.in);
        int cur=0;
        s = scanner.nextLine();


        for (int i = 0; i < s.length(); i+=16) {
            StringBuilder line = new StringBuilder();
            int start = i;
            int end = (i + 16) > s.length() ? (s.length()) : (i + 16);
            String substr = s.substring(start, end);
            System.out.printf("%08d",i/16*10);
            System.out.print("  ");
            for(int j=0;j<substr.length();j++) {
                if(j==8)
                    System.out.print(" ");
                char c = substr.charAt(j);
                System.out.print(Integer.toHexString(c)+" ");
            }
            if (substr.length() < 16) {
                int space = 16-substr.length();
                while (space-->0) {
                    if(space==7)  System.out.print(" ");
                    System.out.print("   ");
                }
            }
            System.out.print(" ");
            System.out.println(substr);
            System.out.println();
        }
    }


}
